<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*"%>
<%@ page import="com.fet.redeem.model.Customer"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	List<Customer> customerList = (List<Customer>)request.getAttribute("customerList");
 %>

	<base href="<%=basePath%>">
	<title>Insert title here</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

<script type="text/javascript">

function loadRedeem(name){
	parent.loadRedeem(name);
}


</script>
</head>
<body>
	<table border="1" >
    	<tr>
    		<th>name</th>
    		<th>msisdn</th>
    		<th>customerNumberA</th>
    		<th>startDate</th>
    		<th>endDate</th>
    		<th>status</th>
    		<th>vipGrade</th>
    	</tr>
    	<%
    	if(customerList != null ){
    		for(Customer customer:customerList){
    	 %>
    	<tr>
    		<td><a href="javaScript:loadRedeem('<%=customer.getName() %>')" ><%=customer.getName() %></a></td>
    		<td><%=customer.getMsisdn() %></td>
    		<td><%=customer.getCustomerNumberA() %></td>
    		<td><%=customer.getStartDate() %></td>
    		<td><%=customer.getEndDate() %></td>
    		<td><%=customer.getStatus() %></td>
    		<td><%=customer.getVipGrade() %></td>
    	</tr>
    	<%
    		}
    	}
    	 %>
    </table>
</body>
</html>